package itheima.com.zuoye.d04;

public class Animal {
//    年龄
//    行为:
//    喝水,吃东西(吃什么不确定)
    private int age;
    public void drink(){
        System.out.println("喝水");
    }
    public void eat(){
        System.out.println("吃东西");
    }

    public Animal(int age) {
        this.age = age;
    }
    public Animal() {
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
